import user_declare from "../orc/orc_declare/user_declare";

export default class win_sex{
	public static view:fgui.Window;;
	public static init(){

		console.log('win_sex init');
		
		this.view = new fgui.Window();
		
		this.view.contentPane = fgui.UIPackage.createObject("window","win_sex").asCom;//包名,组件名
		//fgui.UIConfig.modalLayerColor = new cc.Color(0,0,0,178);
		this.view.modal = true;		
		this.view.center();
		this.view.setPivot(0.5, 0.5);
		this.view.setScale(0.1, 0.1);  
		
		fgui.GTween.to2(0.1, 0.1, 1, 1, 0.3)
        	.setTarget(this.view, this.view.setScale)
        	.setEase(fgui.EaseType.QuadOut)       
		
		this.view.show();

	}

	public static again(){
		fgui.GTween.to2(0.1, 0.1, 1, 1, 0.3)
		.setTarget(this.view, this.view.setScale)
		.setEase(fgui.EaseType.QuadOut);
		orc.orc_data.memory_data.user_info['money'] = 10;
		orc.orc_event.dispatch_event(user_declare.event_id.userinfo_event);      
		this.view.show();
		
	}

}
